import { RouterProvider, createBrowserRouter } from "react-router-dom";
import Home from "./pages/pc/home";
import HomeIndex from "./pages/index";
import Indrouction from "./pages/pc/indroction/index";
import Join from "./pages/pc/join";
import More from "./pages/pc/more";
import HomeH5 from "./pages/h5/home";

export const rootRouter = createBrowserRouter([
  {
    path: "/",
    element: <Home />,
  },
  {
    path: "/",
    element: <HomeIndex />,
    children: [
      {
        path: "/introduction",
        element: <Indrouction />,
      },
      {
        path: "/campus",
        element: <Join />,
      },
      {
        path: "/more",
        element: <More />,
      },
    ],
  },
  {
    path: "/h5",
    element: <HomeH5 />,
  },
]);
export default () => <RouterProvider router={rootRouter} />;
